package org.hiucung.hlsdownloader.database

import androidx.room.Entity
import androidx.room.PrimaryKey

@Entity(tableName = "m3u8_task_items")
data class M3U8TaskItemEntity(
    @PrimaryKey val id: String,
    val url: String,
    val name: String,
    val status: String, // 存储M3UTaskState的序列化形式
    val createdAt: Long,
    val updatedAt: Long,
    val outputPath: String? = null,
    val totalSegments: Int = 0,
    val downloadedSegments: Int = 0
)